package com.bjsxt.shopcenter.common.util;

import java.util.Random;

/**
 * 正则表达式
 * @author FanXiaokang
 *
 */
public class RegexUtil
{
	public String allStr = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
	
	public String proccedStr(int length)
	{
		StringBuffer sb = new StringBuffer();
		Random random = new Random();
		for (int i = 0; i <length; i++)
		{
			int randInt = random.nextInt(allStr.length());
			char ch = allStr.charAt(randInt);
			sb.append(ch);
		}
		return sb.toString();
	}
}
